package com.tensquare.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户对象 tb_user
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 出生年月日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** E-Mail */
    @Excel(name = "E-Mail")
    private String email;

    /** 注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regdate;

    /** 修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedate;

    /** 最后登陆日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登陆日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastdate;

    /** 在线时长（分钟） */
    @Excel(name = "在线时长", readConverterExp = "分=钟")
    private Long online;

    /** 兴趣 */
    @Excel(name = "兴趣")
    private String interest;

    /** 个性 */
    @Excel(name = "个性")
    private String personality;

    /** 粉丝数 */
    @Excel(name = "粉丝数")
    private Long fanscount;

    /** 关注数 */
    @Excel(name = "关注数")
    private Long followcount;

    /** 访问令牌 */
    private String accessToken;

    /** 过期时间 */
    private String expiresIn;

    /** uid */
    private String uid;

}
